import http from '@/utils' //直播管理接口
class  Room {
    // 获取教室列表
    getRoomList(reload){
        let url = '/room/index';
        return http.get(url, reload)
    }
    //  新增教室
    createClassroom(reload){
        let url = '/room/create';
        return http.post(url, reload)
    }
    // 获取教室详情
    getClassroomDetail(reload){
      let url = '/room/detail';
      return http.get(url, reload)
    }
    // 编辑教室
    editCLassroom(reload) {
      let url = '/room/edit';
      return http.post(url,reload)
    }
    //删除教室
    deleteContent(reload){
      let url = '/room/delete';
      return http.post(url,reload)
    }
    //获取录制件列表
    getRoomRecordList(reload){
      let url = '/room/getrecordlist';
      return http.get(url,reload)
    }
    //获取教室课件列表
    getRoomFile(reload){
      let url = '/room/getroomfile';
      return http.get(url,reload)
    }
    //获取教室聊天记录列表
    getRoomChat(reload){
      let url = '/room/getroomchat';
      return http.get(url,reload)
    }
    //获取教室成员信息
    getRoomUser(reload){
      let url = '/room/getroomuser';
      return http.get(url,reload)
    }
    //直播计算器
    calculator(reload){
      let url = '/room/calculator';
      return http.get(url,reload)
    }
    //获取企业上传课件
    getcompanyfilelist(reload){
      let url = '/room/getCompanyFileList';
      return http.get(url,reload)
    }
    //删除文件
    deleteFile(reload){
      let url = '/room/deletefile';
      return http.post(url,reload)
    }
    //关联课件
    roomBindFile(reload){
      let url = '/room/roombindfile';
      return http.post(url,reload)
    }
    //取消关联课件
    roomDeleteFile(reload){
      let url = '/room/roomdeletefile';
      return http.post(url,reload)
    }
    // 获取学员列表信息
    getRoomStudentList(reload) {
        let url = '/room/getstudentlist';
        return http.get(url,reload)
    }
    // 获取教师列表信息
    getRoomTeacherList(reload) {
        let url = '/room/getteacherlist';
        return http.get(url,reload)
    }
    // 添加教室成员
    addRoomMuser(reload) {
        let url = '/room/addroomuser';
        return http.post(url, reload)
    }
    // 获取教室成员
    getRoomUserList(reload) {
        let url = '/room/getroomuserlist'
        return http.get(url, reload)
    }
    // 删除教室成员
    deleteRoomUser(reload) {
        let url = '/room/deleteroomuser'
        return http.post(url, reload)
    }

}
export default new Room()